<?php
/**
 * Created by PhpStorm.
 * User: u
 * Date: 2018/11/20
 * Time: 17:32
 */

namespace common\sources\read\buyuser;

use common\models\craftsman\BuyUserAccount;

class BuyUserAcountAccess implements IBuyUserAcountAccess
{
    public function getBuyUserAccount($buyId)
    {
        return BuyUserAccount::find()
            ->select('remain_funds,remail_golds,freezing_funds,freezing_golds,income_golds')
            ->where(['buy_id' => $buyId])
            ->asArray()
            ->one();
    }

}